<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>${project}</title>
	<link rel="stylesheet" type="text/css" href="<%=path %>/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/easyui/themes/icon.css">
	<script type="text/javascript" src="<%=path %>/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="<%=path %>/easyui/jquery.easyui.min.js"></script>
<style type="text/css">
body { margin:0; padding:0;}
#header { margin:auto; width:400px;text-align:center; }
#main { margin:auto; width:400px;}
</style>
<script type="text/javascript">
function submitForm(){
	$('#ff').submit();
}
function clearForm(){
	$('#ff').form('clear');
}
</script>
</head>
<body>
	<div style="margin: 180px 0;"></div>
	<div id="header">
		<div><h1>后台管理</h1></div>
	</div>
	<div id="main">
		<div><span style="color:red;">${error}</span></div>
		<div  class="easyui-panel" title="登录" style="width: 400px">
			<div style="padding: 10px 0 10px 85px;" style="text-align: center; padding: 5px">
				<form id="ff" method="post" action="login">
					<table style="padding-top: 10px;">
						<tr>
							<td>用户：</td>
							<td><input class="easyui-validatebox" type="text"
								name="loginName" data-options="required:true"></input></td>
						</tr>
						<tr>
							<td>密码：</td>
							<td><input class="easyui-validatebox" type="password"
								name="password" data-options="required:true"></input></td>
						</tr>
					</table>
				</form>
			</div>
			<div style="text-align: center; padding: 5px">
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a> 
				<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">清空</a>
			</div>
		</div>

	</div>
</body>
</html>